package com.project.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.project.bean.DailyBean;
import com.project.bean.GradeBean;
import com.project.mapper.IDailyMapper;
import com.project.mapper.IGradeMapper;
import com.project.service.IDailyService;
import com.project.service.IGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;
import java.util.List;

@Service
@Transactional
public class GradeServiceImpl implements IGradeService {

    @Autowired
    private IGradeMapper mapper;

    @Override
    public List<GradeBean> findByRoleId(int roleId) {
        return mapper.findByRoleId(roleId);
    }

    @Override
    public List<GradeBean> findAll() {
        return mapper.findAll();
    }
}
